<%--
  Created by IntelliJ IDEA.
  User: rabit
  Date: 2021/11/28
  Time: 14:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+ path ;
%>
<html>
  <head>
    <base href="<%=basePath %>" />
    <title>首页</title>
  </head>
  <body>
  <h1>首页</h1>
  <%
    pageContext.setAttribute("msg","我是自己页面上设置的数据");
  %>
  <h2>${msg}</h2>
  <hr><br>
  <h1>Session请求返回</h1>
  <h2>${sessionScope.msg} --- <small>${sessionScope.name}</small></h2>
  <hr><br>
  <h1>Application请求返回</h1>
  <h2>${applicationScope.msg}</h2>
  <h2>${applicationScope.name}</h2>
  </body>
</html>
